package com.heqiang.task;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class AutoTask {

    private static Logger logger = LoggerFactory.getLogger(AutoTask.class);


    /**
     * 测试定时器
     *
     * @param
     * @return void
     * @Author zhangheqiang
     * @Date 2020/3/15
     **/
    @Scheduled(fixedDelay = 50 * 60 * 1000)
    public void refreshToken() {
        System.out.println("定时器在运行哦!");
    }
}